<div id="sanpham_right">
           	    <div id="title_right">
            		<p id="title_right_left"></p>
            		<div id="title_right_center">
            		  <p class="chu_title">DANH SÁCH TIN TỨC </p>
            		</div>
           			<p id="title_right_right"></p>
             	</div>
                <div id="noidung_right">

<?php
	if($data)
	{
?>
			<table width = "590" cellpadding = "2" cellspacing = "2" border = "0" align = "center">
			<tr class = "danhmuc"> 
				<td width = "250" > <div align = "center"> <b> Tiêu Đề </b> </div> </td>
				<td width = "80" > <div align = "center"> <b> Ẩn hiện </b> </div> </td>
				<td width = "80" > <div align = "center"> <img src="public/images/b_edit.png"/> Sửa</div> </td>
				<td width = "80" > <div align = "center"> <img src="public/images/b_drop.png"/> Xóa </div> </td>
			</tr>
		<?php 
		foreach ($data['list'] as $key => $value) {
		?>
			<tr> 
				<td  valign = "top"> <div align = "center"><?php echo $value['TieuDe'];?></div> </td>
				<td  valign = "top"> <div align = "center">
				<?php
					if($value['AnHien'] == 1){
						echo 'Hiện';
					}
					else 
					{
						echo 'Ẩn';
					}
					?>
				</div> </td>
				<td width = "80" > <div align = "center"> <a href = "admin.php?mod=updatetintuc&ma=<?php echo $value['MaTin'];?>"> Sửa </a></div> </td>
				<td width = "80" > <div align = "center"> <a href = "admin.php?mod=deltintuc&ma=<?php echo $value['MaTin'];?>"> Xóa </a> </div> </td>
				</tr>
		<?php } ?>

		<tr> 
			<td colspan = "7"> <button onclick = "window.location.href='admin.php?mod=addtintuc'"> Thêm Mới</button></td>
		</tr>
		</table>
<?php 
	}
?>
</div>
</div>